<template>
  <div class="topic">
    <el-tabs v-model="activeName">
      <el-tab-pane label="课程话题" name="1">
        <topicsubject v-if="activeName === '1'"/>
      </el-tab-pane>
      <el-tab-pane label="班级话题" name="2">
        <topicclassroom v-if="activeName === '2'"/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>

import Topicsubject from './components/topic/topicsubject'
import Topicclassroom from './components/topic/topicclassroom'
export default {
  components: {
    Topicclassroom,
    Topicsubject
  },
  data() {
    return {
      activeName: '1'
    }
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.topic {
  padding: 0px 20px;
}
</style>

